// use localStorage to store the authority info, which might be sent from server in actual project.
export function getAuthority() {
  return sessionStorage.getItem('antd-pro-authority') || 'guest';
}

export function setAuthority(authority) {
  return sessionStorage.setItem('antd-pro-authority', authority);
}

export function getCity() {
  return sessionStorage.getItem('userCity') || '初始值';
}

export function setCity(authority) {
  return sessionStorage.setItem('userCity', authority);
}

export function getToken() {
  return sessionStorage.getItem('token');
}
export function setToken(token) {
  return sessionStorage.setItem('token', token);
}

export function getIntervalFreshText() {
  return sessionStorage.getItem('intervalFreshText') || '60秒';
}

export function setIntervalFreshText(authority) {
  return sessionStorage.setItem('intervalFreshText', authority);
}

export function getIntervalFreshValue() {
  return sessionStorage.getItem('intervalFreshValue') || '10000';
}

export function setIntervalFreshValue(authority) {
  return sessionStorage.setItem('intervalFreshValue', authority);
}
